const routes = [
  { title: '登录', path: '/login', exact: true, component: '@/pages/login' },
  { path: '/', exact: true, redirect: '/index'},
  {
    path: '/',
    component: '@/layout',
    routes: [
      {
        title: '首页',
        path: '/index',
        exact: true,
        component: '@/pages/index',
      },
      {
        title: '在线留言',
        path: '/message',
        exact: true,
        component: '@/pages/message',
      },
      {
        title: '产品',
        path: '/product',
        exact: true,
        component: '@/pages/product/list',
      },
      {
        title: '添加产品',
        path: '/product/add',
        exact: true,
        component: '@/pages/product/add',
      }
    ]
  }
]

export default routes;
